<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/10/22
 * Time: 16:04
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;


class Address extends Base
{
    protected $rule = [
        "openid" => "require",
        "school" => "require|gt:0",
        "number" => "require",
        "relname" => "require",
        "sex" => "require",
        "mobile" => "require|mobile",
        "address"=>"require",
        "addressLat"=>"require",
        "addressLng"=>"require"
    ];
    protected $message = [
        "openid.require" => "系统内部错误",
        "school.require" => "请选择学校",
        "school.gt" => "学校类型错误",
        "number.require" => "请输入门牌号",
        "relname.require" => "请输入联系人",
        "sex.require" => "请选择性别",
        "mobile.require" => "请输入手机号",
        "mobile.mobile" => "手机号格式错误",
        "address.require"=>"请选择地址",
        "addressLat.require"=>"请选择地址",
        "addressLng.require"=>"请选择地址",
    ];
    protected $scene = [
        "add" => ["openid", "school", "number", "relname", "sex", "mobile","address","addressLat","addressLng"]
    ];
}